package com.nightpiter.view.graphics.impl.factories;

import android.graphics.Rect;

import com.nightpiter.view.graphics.abstaractions.AbstractRect;
import com.nightpiter.view.graphics.factories.RectFactory;
import com.nightpiter.view.graphics.impl.AndroidRect;

public class AndroidRectFactory extends RectFactory {

	@Override
	public AbstractRect create() {
		return new AndroidRect(new Rect());
	}

	@Override
	public AbstractRect create(com.nightpiter.view.graphics.Rect rect) {
		return new AndroidRect(new Rect(AndroidRect.cast(rect)));
	}

	@Override
	public AbstractRect create(int left, int top, int right, int bottom) {
		return new AndroidRect(new Rect(left, top, right, bottom));
	}

}
